home *** CD-ROM | disk | FTP | other *** search
/ SPACE 1 / SPACE - Library 1 - Volume 1.iso / program / 441 / fplib20 / atof.c next >
C/C++ Source or Header  |  1990-11-23  |  408b  |  20 lines

  1. /* ATOF function for Sozobon C.                        */
  2. /* Copyright © David Brooks, 1989 All Rights Reserved            */
  3.  
  4. /* Hack warning.  Hack warning.  Hack warning...            */
  5. /* Somehow I feel scanf should call atof, not the other way around.    */
  6. /* Guys???                                */
  7.  
  8. float atof(s)
  9. char *s;
  10. {    float    res;
  11.  
  12.     sscanf(s, "%g", &res);
  13.     return res;
  14. }
  15.  
  16. _scandum()
  17. {
  18.     _scanf();            /* Force floating version to load */
  19. }
  20.